package com.dengyuanke.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dengyuanke.common.SuperEntity;
import com.dengyuanke.entity.enums.CarouselEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * <p>
 * 轮播图
 * </p>
 *
 * @author dengyuanke
 * @since 2017-11-07
 */
@ApiModel("轮播图实体")
@TableName("tb_carousel")
public class Carousel extends SuperEntity<Carousel> {

    private static final long serialVersionUID = 1L;
    /**
     * 所属类型1首页，2商品详情轮播图
     */
    @ApiModelProperty("所属类型1首页，2商品详情轮播图")
	private CarouselEnum type;
    /**
     * 图片url
     */
    @ApiModelProperty("图片url")
	private String url;
    /**
     * 所属商品id
     */
    @ApiModelProperty("所属商品id")
	@TableField("goods_id")
	private String goodsId;

    public CarouselEnum getType() {
        return type;
    }

    public void setType(CarouselEnum type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    @Override
    public String toString() {
        return "Carousel{" +
                "type=" + type +
                ", url='" + url + '\'' +
                ", goodsId='" + goodsId + '\'' +
                '}';
    }
}
